package com.umpay.dto.merBusi.req.split;

import java.io.Serializable;
import java.util.StringJoiner;

import javax.validation.constraints.NotNull;

import com.umpay.annotation.Pattern;

public class SplitDataBusi implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@NotNull(message = "商户分账订单号不能为空")		
	@Pattern(message = "商户分账订单号格式不正确")
	private String splitOrderId;	//商户订单号
	
	@NotNull(message = "商户分账订单日期不能为空")		
	@Pattern(message = "商户分账订单日期格式不正确")
	private String splitOrderDate;	//商户订单日期
	
//	@NotNull(message = "收款方用户号不能为空")
	@Pattern(message = "收款方用户号格式不正确")
	private String inUserId;	//收款方用户号

    @Pattern
    private String inMerCustId;//收款放商户用户号
	
//	@NotNull(message = "收款方类型不能为空")		
//	@Pattern(message = "收款方类型格式不正确")
	private String inUserType;	//收款方类型
	
	@NotNull(message = "收款方账户类型不能为空")		
	@Pattern(message = "收款方账户类型格式不正确")
	private String inAccType;	//收款方账户类型
	
	@NotNull(message = "金额不能为空")		
	@Pattern(message = "金额格式不正确")
	private String splitAmount;	//金额
	
	private String isFeePayer;	//是否手续费承担方
	
	private String inAccountName;	//收款方户名

    public String getInMerCustId() {
        return inMerCustId;
    }

    public void setInMerCustId(String inMerCustId) {
        this.inMerCustId = inMerCustId;
    }

    public String getIsFeePayer() {
		return isFeePayer;
	}
	public void setIsFeePayer(String isFeePayer) {
		this.isFeePayer = isFeePayer;
	}
	public String getSplitOrderId() {
		return splitOrderId;
	}
	public void setSplitOrderId(String splitOrderId) {
		this.splitOrderId = splitOrderId;
	}
	public String getSplitOrderDate() {
		return splitOrderDate;
	}
	public void setSplitOrderDate(String splitOrderDate) {
		this.splitOrderDate = splitOrderDate;
	}
	public String getInUserId() {
		return inUserId;
	}
	public void setInUserId(String inUserId) {
		this.inUserId = inUserId;
	}
	public String getInUserType() {
		return inUserType;
	}
	public void setInUserType(String inUserType) {
		this.inUserType = inUserType;
	}
	public String getInAccType() {
		return inAccType;
	}
	public void setInAccType(String inAccType) {
		this.inAccType = inAccType;
	}
	public String getSplitAmount() {
		return splitAmount;
	}
	public void setSplitAmount(String splitAmount) {
		this.splitAmount = splitAmount;
	}
	
	public String getInAccountName() {
		return inAccountName;
	}
	public void setInAccountName(String inAccountName) {
		this.inAccountName = inAccountName;
	}

    @Override
    public String toString() {
        return new StringJoiner(", ", SplitDataBusi.class.getSimpleName() + "[", "]")
                .add("splitOrderId='" + splitOrderId + "'")
                .add("splitOrderDate='" + splitOrderDate + "'")
                .add("inUserId='" + inUserId + "'")
                .add("inMerCustId='" + inMerCustId + "'")
                .add("inUserType='" + inUserType + "'")
                .add("inAccType='" + inAccType + "'")
                .add("splitAmount='" + splitAmount + "'")
                .add("isFeePayer='" + isFeePayer + "'")
                .add("inAccountName='" + inAccountName + "'")
                .toString();
    }
}
